import formBuilder from "@/comps/form/formBuilder";
import api from "../../Orders/js/api";

export default {
    main:function () {
        let fb = formBuilder()
        fb.setLabelWidth(100)

        fb.addSearch("orderId","订单",12).setInputPositionRight()
            .setApi(api.urlChoice)

        fb.addText("num","金额/元",3).setTypeNumber()
            .setRules([fb.R.notNull("金额不能为空")])

        fb.addText("title","往来说明",9)
            .setRules([fb.R.notNull("往来说明不能为空")])


        fb.addArt("content","备注",12)

        fb.addFiles("assets","附件",12).setIsFile().setIsMultiple()


        return fb
    },
    other:function () {
        let fb = formBuilder()
        fb.setLabelWidth(100).setLabelPosition("right")

        return fb
    }
}